{% extends "base.html" %} {% block title %}{{ question.title|truncate(65, True, '...') }} - Q&A Forum{% endblock %} {% block extra_meta %} {% endblock %} {% block page_breadcrumb %}
{% endblock %} {% block content %}
{% set csrf_token_value = csrf_token() if csrf_token is defined else '' %}
{{ question.category.title() }} {% if question.is_answered %} Answered {% else %} Awaiting Answer {% endif %}

{{ question.title }}

{{ question.view_count or 0 }} views
{% if not question.is_anonymous and question.patient and question.patient.user %}
{% set patient_avatar = '' %} {% if question.patient.user.profile_picture %} {% if question.patient.user.profile_picture.startswith('/static/') %} {% set patient_avatar = question.patient.user.profile_picture %} {% elif question.patient.user.profile_picture.startswith('uploads/') %} {% set patient_avatar = url_for('static', filename=question.patient.user.profile_picture) %} {% else %} {% set patient_avatar = url_for('static', filename='uploads/' + question.patient.user.profile_picture) %} {% endif %} {% endif %}
{% if patient_avatar %} {{ question.patient.user.name }} {% else %} {% endif %}
{{ question.patient.user.name }} Asked on {{ question.created_at.strftime('%b %d, %Y') }}
{% endif %}
{% if not question.is_anonymous %}
{% if question.patient.user.gender %} {{ question.patient.user.gender.title() }} {% endif %} {% if question.patient.user.address %} {{ question.patient.user.address }} {% endif %}
{% endif %}

{{ question.content }}

{% if session.user_role == 'patient' %}
{% endif %}

Doctor Responses {{ answers|length }}

{% if answers %} {% for answer in answers %}
{% set avatar_url = '' %} {% if answer.doctor.user and answer.doctor.user.profile_picture %} {% if answer.doctor.user.profile_picture.startswith('/static/') %} {% set avatar_url = answer.doctor.user.profile_picture %} {% elif answer.doctor.user.profile_picture.startswith('uploads/') %} {% set avatar_url = url_for('static', filename=answer.doctor.user.profile_picture) %} {% else %} {% set avatar_url = url_for('static', filename='uploads/' + answer.doctor.user.profile_picture) %} {% endif %} {% endif %}
{% if avatar_url %} {{ answer.doctor.user.name }} {% else %} {% endif %}
{{ answer.doctor.user.name }}
{{ answer.doctor.category.title() }} {% if answer.doctor.experience %} {{ answer.doctor.experience|int }} yrs exp. {% endif %} {% if answer.doctor.user.address %} {{ answer.doctor.user.address }} {% endif %}
View Doctor Profile
{{ answer.created_at.strftime('%b %d, %Y') }}

{{ answer.content }}

{% set feedback = answer_feedback_status.get(answer.id, 'unrated') %}
{% if can_reply_on_answers.get(answer.id) %} {% endif %}
{% for reply in answer_replies.get(answer.id, []) %}
{{ reply.user.name }} {{ 'Doctor' if reply.user.role == 'doctor' else 'Question Owner' }} {{ reply.created_at.strftime('%b %d, %Y %I:%M %p') }}

{{ reply.content }}

{% if reply.photo_path %} Reply attachment {% endif %}
{% endfor %}
{% endfor %} {% else %} {% if not can_answer %}
No Answers Yet

Verified doctors specializing in {{ question.category.title() }} will respond to this question soon.

{% endif %} {% endif %}
{% if question.is_answered and answers and can_post_any_reply and answer_reply_targets %}
Attach Photo here: No file selected
{% if csrf_token is defined %} {% endif %}
{% endif %} {% if can_answer %}
{% if csrf_token is defined %} {% endif %}
{% endif %}
Question Details
Specialty{{ question.category.title() }}
Status{{ 'Answered' if question.is_answered else 'Awaiting' }}
Responses{{ answers|length }}
Asked{{ question.created_at.strftime('%b %d, %Y') }}
Views{{ question.view_count or 0 }}
{% if related_questions %}
Related Questions
{% for related in related_questions %} {{ related.title[:55] }}{% if related.title|length > 55 %}...{% endif %} {% endfor %}
{% endif %}
Need a Private Consultation?

Book a confidential video consultation with a verified specialist.

Consult a {{ question.category.title() }} Doctor
{% endblock %}